﻿using StudentManagerModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StudentManagerDAL;
using StudentManagerModels.Ext;

namespace StudentManagerBLL
{
    public class StudentsManager
    {
        private StudentService studentService = new StudentService();
        public int AddStudent(Student student)
        {
            return studentService.AddStudent(student);
        }

        public bool IsIdNoExisted(string studentIdNo)
        {
            return studentService.IsIdNoExisted(studentIdNo);
        }
        public bool IsCardNoExisted(string cardNo)
        {
            return studentService.IsCardNoExisted(cardNo);
        }

        public List<StudentExt> GetStudentByClass(string className)
        {
            return studentService.GetStudentByClass(className);
        }

        public StudentExt GetStudentById(string studentId)
        {
            return studentService.GetStudentById(studentId);
        }

        public StudentExt GetStudentByCardNo(string CardNo)
        {
            return studentService.GetStudentByCardNo(CardNo);
        }

        public bool IsIdNoExisted(string idNo, string studentId)
        {
            return studentService.IsIdNoExisted(idNo, studentId);
        }

        public int ModifyStudent(Student objStudent)
        {
            return studentService.ModifyStudent(objStudent);
        }
        public int DeleteStudentById(string studentId)
        {
            return studentService.DeleteStudentById(studentId);
        }
    }
}
